package com.corpgovernment.travelstandard.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import com.corpgovernment.common.enums.DeleteStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * mb_travelstand_hotel_area
 * 区域配置表
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Alias("travelStandardAreaConfig")
@Accessors(chain = true)
@Table(name = "mb_travelstand_hotel_area")
public class TravelStandardAreaConfig extends BaseEntity {

    /**
     * 组织id
     **/
    @OperateLogFieldDesc(value = "组织id")
    @Column(name = "org_id")
    private String orgId;

    /**
     * 地区名称
     **/
    @OperateLogFieldDesc(value = "地区名称")
    @Column(name = "area_name")
    private String areaName;

    /**
     * 地区类型（0-通用地区、1-其它地区）
     **/
    @Column(name = "area_type")
    private String areaType;

    /**
     * 删除状态
     **/
    @OperateLogFieldDesc(value = "删除状态", type = DeleteStatusEnum.class)
    @Column(name = "status")
    private Integer status;

    /**
     * 酒店类型
     */
    @Column(name = "hotel_type")
    private String hotelType;

    /**
     * 地区对应城市
     */
    @Transient
    private String citys;
}
